package cn.wolfcode.p2p.base.query;

import cn.wolfcode.p2p.base.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

/**
 * Created by wolfcode on 2018/7/23.
 */
@Setter
@Getter
public class RealAuthQueryObject extends QueryObject {
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date beginDate;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endDate;

	private Integer state = -1;

	public Date getEndDate() {
		return DateUtil.getEndDate(this.endDate);
	}
}
